package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * @Classname AuthApplication
 * @Description TODO
 * @Date 2022/3/26 22:40
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableResourceServer
@MapperScan("com.example.mapper")
public class AuthApplication {

    /**
     * 127.0.0.1:8006/oauth/token?username=user_1&password=123456&grant_type=password&scope=all&client_id=wuzzClientId&client_secret=wuzzSecret
     * 127.0.0.1:8006/oauth/check_token?token=0d496120-976d-40d9-8726-86c3ef96cdad
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class,args);
    }
}
